Fixes to whereClause type checking for DB_TIME_NOW
Fixes to threads handling in crontab python server