fixed issue with getting current db connection in basemodels.py