updated database connector