implement get\addAmount in DBManager