refactor to use sequelize
refactor to use sequelize
refactor xdf and oauthlogin