Fix for #90, on the Database core classes

Fix for #90, on the Database core classes, including PHPdocs