reworked the db migrations