work on contest database