update core db code