small db fixes
wtf