Continuing my work on the DB layer

The DB now creates tables, their fields and extends them if they miss
fields.
TODO: Document the changes made today and their classes.