Setting up app structure, connecting to db