database connection fix