def execute_cmd(conn, sqlcmd):
	""" Execute the sqlcmd statement
		params: conn: Connection Object
				sqlcmd: An sql statement
		returns the rows returned by executing the statement
	"""	
	with conn:
		cur = conn.execute(sqlcmd)
		rows = cur.fetchall()
		return rows