Modify database log codes