In `src/fastapi_server/app/api/dependencies/database.py` you have a function that redeclares the sessionmaker each time you call it. The purpose of the sessionmaker is to have the settings for all sessions defined in a [single place](https://docs.sqlalchemy.org/en/13/orm/session_basics.html#when-do-i-make-a-sessionmaker). You can move it to `database.py` like how the [FastAPI tutorial](https://fastapi.tiangolo.com/tutorial/sql-databases/#create-the-sqlalchemy-parts) does.