@classmethod
def get_by(cls, **kw):
    """
        Shorthand to retrieve data by using filters. It returns the first
        element of the returned data.
        """
    return cls.query.filter_by(**kw).first()
