added functions to add accounts to local DB