Fixing some database stuff, removing old crap. No more __constructStatic