Check CDB_QueryTable response before saving into cache

Also add pid to /cachestatus (#83)