async def get_post_header(context, author, permlink):
    """Fetch basic post data"""
    db = context['db']

    sql = """SELECT id, parent_id, author, permlink, category, depth
               FROM hive_posts
              WHERE author = :author
                AND permlink = :permlink
                AND is_deleted = '0'"""
    row = await db.query_row(sql, author=author, permlink=permlink)

    if not row:
        return None

    return dict(
        author=row['author'],
        permlink=row['permlink'],
        category=row['category'],
        depth=row['depth'])