Updated Stargate getNum function with generic dbHandler

Updated Stargate getNum function with generic dbHandler function