revise order database