added diary pages object and database handler