Now retrieves array from db and displays checkboxes