judges function and db changes