Add schema.js

closes #1398
closes #1399
- Attention: migrations will not work at the moment (only setup of new db)
- added schema.js with database version '000'
- refactored migration/000.js to use schema.js
- changed import pre checks to work again