Fix issue 291 and changed DB schema (create file instead of migration)

Fix #291