Added Database connection handler