added some basic db connect code