Changed edit_account to use the new db class