Routes and database handling for program exercises.