Provide proper response when indices list is not given as parameter. Remove unused num_list_to_sql_array lambda