dao factory in sign in/out