Creating class responsible for manage database