Instantiate Repository from DB