Add DBAL loader as an alternative for read-only entities

Just a checkpoint of working code. Please take a look.