Dynamically create or upgrade database and indices

Automatic removal of tables, indices or columns are not yet supported, only additions.