Compiler whack-a-mole. Fixed all compile time errors for DB migration. Functionaly is still lacking, but at least it compiles. #83