added db stuff, master prov script