Migrated shifts to db.