Added class for work with db