Db adapter improved by giving full query in case of query execution error happened