insertOrReplace method added

db.insertOrReplace('table',persistObj)