Load Scan menu now orders scandefs by last_used_time
scanserver now writes to scandef last_used_time
improved initial db connection, now using PG QueuePool