1. A computer-implemented method comprising: maintaining a source database storing data as tables, the tables including at least a particular table; receiving a database query associated with a performance issue on the source database, the database query processing data of the particular table; creating a backup repository for the source database, the creating comprising: retrieving data of one or more tables of the source database by executing one or more database queries, the one or more tables including the particular table, wherein execution of the one or more database queries retrieves rows of the one or more tables including rows marked as deleted in the source database, wherein the rows marked as deleted were deleted in the source database before creating the backup repository, and storing the retrieved data in a backup repository; restoring a target database using the backup repository, the restored target database storing the particular table including rows of the particular table marked as deleted in the source database; and executing the database query on the target database to analyze the performance issue of the database query on the source database, the executing comprising processing the restored particular table, wherein the restored particular table stores rows marked as deleted in the source database.