Ireckonu interview question

How would you structure a project that needs a API and a database?