Create database if it doesn't exist

When importing a database, create the database first if it doesn't already exist.