Stream fixes + parameterized path for db.