gets db connection working locally