Add API and SQL database