Added error checking on persist module
Performance update
Added another index test