db refactor , main entrance
db refactor , main entrance