day2

changed the arhitecture of the database a bit, so changed the functions
a bit too. also implemented the first page