Can you provide more details on errors you are seeing? The URL and credentials to access the database will be in an environment variable called VCAP_SERVICES, are you using that when you deploy to BlueMix?