title: Where does connect_to_database() comes from?
body: <p><a href="http://flask.pocoo.org/docs/0.10/patterns/sqlite3/" rel="nofollow">http://flask.pocoo.org/docs/0.10/patterns/sqlite3/</a></p>
  
  <p>I get this:
  NameError: global name 'connect_to_database' is not defined</p>
  
  <p>Can't really se where it should be defined either?</p>