def get_keyword(cursor):
    """Returns a random keyword from the database."""
    cursor.execute(
        "SELECT word FROM keywords " +
        "OFFSET floor(random()*(SELECT COUNT(*) FROM keywords)) LIMIT 1"
        )

    return cursor.fetchall()[0][0]