Continued to check the cause of the error encountered in the application, as per checking of the query, it is only inserting data, remove the try-catch in the web application to see what exactly caused the error.