DB/Misc: Fix some errors