flow, db: rename should_inline() to inlinable() and export the function