DB schema and migration scripts were changed to support PostgreSQL