added function for staging db connect