beginnings of backend

started the backend. got the classes written (may want to double check
them), and the start of the database class.