fixing config DB for apim template