refactor LocalDB model once more