fixed error SQLSTATE[55000]: Object not in prerequisite state: 7 ERROR:  currval of sequence "TABLE_NAME_seq" is not yet defined in this session