parse wmvid
optimize db querys. code refine.