title: Restore database SQL server query
body: <p>I want a way to write my own query to restore the database. The database to restore needs to have all the settings to delete the current user and re-map the same user. The reason for that is because when  the database is restored, the user will not have the right settings to use the database and will have to re assign the user the privileges.</p>