Base classes for storage connections (redis, postgres) on PHP