Create plan model
Switch db to postgres