implement getAmount(Integer id)
contains DataBase
connects with Socket