Added some basic classes and database functions