Update mysql statements on add and edit pages