moving dbconnect to model
Merge remote-tracking branch 'origin/master' into sham_branch