[php] CodeIgniter - how to catch DB errors?