OAuth hooked into database model.