INSERT INTO device_current_state(device_id,current_state,location_id,device_type_id,description,created,updated) VALUES ('', '', '', '', '',getLocalTimeForLocation(location_id),created);