implemented interaction with database through session beans for entity beans