Database in and partial oauth