fixed issue in DatabaseVersionRepository