do database refactor use database access entity