Updated the API and the database