now handling unhandled exceptions in client connection and made a dbmanager singleton
moved error codes to separate class
Credentials: added method for hashing the password
added method for checking whether a user exists
added method for inserting a user