solve problem PG::DuplicatePstatement: ERROR