IRepository final version + db test