updated database connection