migrating the database