def optimize_db(cursor):
    """Set options to make sqlite more efficient on a high memory machine"""
    cursor.execute('PRAGMA cache_size = -%i' % (0.1 * 10 ** 7))
    cursor.execute('PRAGMA temp_store = 2')
