Fixes #19; Passes db reference to server request handler