Program a python method that enables the user to access and store items in an online database.
The online database contains information related to restaurant reviews and ratings.
def access_database(db):
 connection = db.connect()
 cursor = connection.cursor()
 cursor.execute("SELECT * FROM restaurant_reviews")
 results = cursor.fetchall()
 connection.close()
 return results