fixed sql and gps service