def get_messages(conn):
	"""
	get messages
	:param conn: database connection
	:return rows: query result
	"""
	query = "SELECT `text` FROM `message` ORDER BY `ROWID` DESC LIMIT 20;"
	cur = conn.cursor()
	cur.execute(query)

	rows = cur.fetchall()

	return rows