changed find method to static
database getter now sets default charset
added auth class
added handling for null values in Database::query
added static method User::register
added User::login method