fixed bug with creating user

updated database references for saving user information
Cleaned up code

Added StudyBuddy class to hold constants