What is the relationship between the APIM Gateway and it's DB