Updated database methods
simple_select has a group by option