Fixing minor search bug. resident getting added twice on startup. database version upgrade.