update contract db for mysql