Added db queries to message and challenge classes. Added achievement class and tables.