Minor db tweaks