add getter and setters for flags and power masks on objects.
Added trim to string slit
OM-82: Added power saving to the db.