added new fields to form, created temp database, fixed both images