pulling and addint shifts to the database