Fixed local db management