* updating to handle prod permissions split
* use db for history for user metadata update