db functionality for edit account, create account, login