db models for postgres
db switchover