Creating repository/session factories for mini ORM.