OOP abstraction of databases (R version of Python package SQLAlchemy)