DB/Misc: Random fixes/error fixes