Corrected OAuth token check in db