DB/Misc: Fixed some db errors