Adds form, javascript logic for dat and ajax database save