small change to use both __main__ and function as expected.
initial db migration for unread_count on userfeeds appears to be stable.