A Programable Database Engine for Multimedia