log calls to oid sql query