database code update