added database connection handler
Merge branch 'master' of github.com-oweidner:oweidner/nil