Fix Repository class

Small PDO issue was fixed