Display actual file and line number where the sql error is occured.

Make a change to display actual file and line number where the sql error is occured.
When there is a sql error it will also display model file name where the error is occured.