- added functionality to query database properly.
- Added/optimized finctionality to authenticate user, create new profile and get user profile from the server