Added database creation and migration to testing