db connection fix