Added more tables to database, added more function to API (and corresponding routes).