Update get_table function: added 'as' parameter.