save accounts in database