Smart Retrieval on Surveillance Video Databases