database tweaks