modified model to return proper Model::SQL_FAILED