Redesigned database module
Simple response HTTP code proxying.
Changed throwing errors to console log messages, as the former cause the server to crash.