refactored with new Thujohn functions for oauth (dropping Philo oauth) (working and posting to db)