factoring out dblayer for security
factoring out db connects into layers for security, per #21
factoring out db connects into separate layer
refactoring out db connects to layers