DB query test. Changed ERRNO