added form and connection to db