minor database tweaks