small updates to database migration