inserction of classes to deal with communication with BD