Exit staging script if unable to connect to database
Fix use statement
Enable database copying