added singleton and collection crud methods for api