Fixed storing ShortTarif into DB
Fixed closing of pgSQL connections