sqlite: minor tweaks