added db connect