Added some basic error handling in KISS_Model

this will help debugging db issues enormously