added session beans and refactor entity beans