How to fix Object not in prerequisite state in PostgreSQL | DevErrors