add collisions support (TODO: spatial indexing for pg)