database interactions with account page