DB lab1 shift hash fixes and a bunch of stuff