housekeeping
implemented query saving on sql
implemented validation on hosts - set by new config directive in main config