Store the device owner in DB. Remove the logic for deriving the same

Change-Id: I78a96f0c581ae02bc9ddb58340366bdb5afa6d21
Merge "Store the device owner in DB. Remove the logic for deriving the same"