Moving to API system

Moving from MySQL calls to api system
Loading completed
Saving still having issues