Fixed database connection handling
Merge branch 'master' of https://github.com/msandrock/buddyshopping