more fixes, -f flag to force database recompilation