Path Modeling and Retrieval in Distributed Video Surveillance Databases