isolate funcionality on database and wait to response gps info