Just one thing. Based on my experience, itās not good idea to include DB information in your code. It is better to use SuiteCRM methods to avoid security issues and maintenance related problems. Take a look into this sample to see how DB information is called: