SQL database recovery application