Algorithm working and using database, still need to finish adding shifts to database