@Ninjatrappeur yeah, when the insert/delete/specific select fails they affect the user directly, that's why I tried to handle that. But... I'm not handling others because it's too much. At least at the moment.
In the future I may refurbish everything and put stuff in order. Now I need it to work.