Database keeps changes through one class