Updated guestbook to support database