more db tweaks