fixed saveToDB code to be less messy (one function with params instead
of 4 functions)

fixed removing "Custom: " from value returned to be correct

swapped IMEI/Profile ordering in Sandboxed to match Sandbox