begin moving databases operation in repositories classes