adding db connection insert and get functions for guestbook