handle unique constraint for cursor for memory implementation
fix index creation for websql
fix index creation for websql