Added start of DB connection logic