migrate the database