DB/Misc: fixing errors