worked on dbinteraction class