export SQL database objects in Script file