Added API

This is all the API code that exists connected to the Database