fixed uuid bug

When primary key is of type uuid in PostgreSQL, generated queries are considered as not valid. This commit fixes it.