Added database connectivity

database accessible, but someone has to wire it up.