 def init_db():     """Initializes the database."""     db = get_db()     with app.open_resource('schema.sql', mode='r') as f:         db.cursor().executescript(f.read())     with open('hardwarelist.txt') as fl:         