Typo: database final code/tutorial mismatch

The tutorial included code to connect to the database that was not the same as in the final `app.py` included in the package. This broke the tutorial immediately, specifically parts that had to `/post` anything.