sqlalchemy + functional subreddit retreval