indexed sql + prototype 1 conversion