db connection error fix