implemented DBAL repository