updates app so that data gets inserted properly