updated database connect