bettered db connection