removed curl, fixed temp database processing