Hack to make UUID primary keys work in Postgresql