Added a database structure dump

Most of this is from the original API, except for the consumer/application part.
Nothing of this is used in the actual server just yet.

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Disable auto commit on all new connections by default

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Moved the test related stuff into a subfolder test/

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>