database class for guestbook