policies page connected to db
merge fixes