hi
I am a full stack php developer .. I am good with mysql,mssql,postgresql,mangodb and did hundreds of projects using PDO ..So if I understood correctly whenever an exception is encountered it should be taken to db.. I would like to do this task for you if you are interested..
Thank you