Refactored and generalized db creation
Cleaned up GUI creation code, now relies mostly on screen.lua
Missed some files
Merge