trying to understand form and db implementation