replace deprecated postgis functions x->st_x y->st_y st_box2->box2d

This pr is removing deprecated postgis functions from index queries.
These functions are not supported anymore in postgis 2.1.4
p.e.
x(geom)
y(geom)
st_box2d(geom)