Added database insertion from form