fs_scan, rbh_daemon: fixed DB connection leaks.