Implemented coordinates update on DB