fixes to list_tables and insert functions
allow select lists which work same as the checkbox