add function to determine the script, function and line that called the database, embed data into log to make fixes easier