Factory and API for adding a user to the database is working. I will be setting rootScope variables when they log in, running the query to check if the user exists, and if not then adding them to the database based off the  variables.