in reply to escape dot in db password

To answer your question - the dot does NOT need to be esaped, within a single or double quoted string. The only case it needs to be escaped is if it is inside a regular expression.

If you can post the relevant line(s) of code, we can better help you identify the issue.

        This is not an optical illusion, it just looks like one.