CE-3012: Refactor DB
Refactoring DB
Left the ioc_type_history table - we could remove it later if we decide so
Refactored the migration scripts to have them in directories - because the using...with syntax is not compatible between the H2 and Postgres DB. In H2 we don't need the migration to be run, it is enough to have the correct table structure-