Added oAuth2/db authentication