add log filtering by level in the API & UI

overwrite the initial DB migration as we're not keeping old migrations
yet.