fix DatabaseRecoveryService
(revert changes in the query)