Database functions work on lists of tuples now