Updating SQL to restore DB