Fixed DB path so that shorty runs on Windows

The shorty example used a hardcoded path for the db, and that makes it crash on Windows. Use tempfile.gettempdir instead.