@classmethod
def factory(cls, **kwargs):
    """ helper method to open a Database object (and optionally create the tables in that Database) """
    db = cls(**kwargs)
    if kwargs.get('create'):
        db.create()
    return db
