OSQLMethod : method extend function to allow using indexes

uncomplete work on OSQLMethod extend OSQLFunction.
some bugs remain.