Modified how to allow restore based on policies

Added functions to add Servers, Database, Groups and Policies