How can data collected in a form be automatically entered in a database?