changes admin template
changed db query