add db access and support signup.