migrate the db