replaced SQLExceptions with PersistenceExceptions