more validation; buffix on datetime validation; moved query logging to own spot; better error handling on json parse errors