Start to add form and to change database function to group data.