fxed a procedure on locDB