fixing bug when retrieving segments
update to titan 0.5.2 and catch unique constraint exception and wrap into a more friendly one