Initial commit of existing db class version

Signed-off-by: Russell Newman <rn2@ecs.soton.ac.uk>
Removed query queuing and simplified some methods. Uses objects instead of arrays.

Signed-off-by: Russell Newman <rn2@ecs.soton.ac.uk>