updated migrations and authentication methods for oauth2