Simplify insert_query_records
Replace print statements of exception with dedicated function print_exc
Remove logging since it is never used
Remove logging and onhold daemon, they never used and slow things down
Add padding
Remove explicitly record with qhash
Add unique parameter to control start-up of unique thread for the same function call
Made sure that genkey generates key w/o transient fields
Print exception and perform iteration over sorted list of services
Various improvements to help identify problems. I also added DBS global instance which is used in DASQuery hash generation (this should be changed when we switch to new DBS)
ADd printout for cache/web requests
Re-factor DBConnection class
Ensure that idx will be zero all the time
Add flush method; start cleanup_worker thread only once; add retry section in get results (still under development)
Remove printout; add flush after insert/merge steps
Invoke aggregation when we have more then one record