Always great to see Svelte getting favorable press. One thing I thought I would mention is that while $$props will work to access properties, it isn't the official way of doing it.
As per the Svelte docs, you want to have something like this in your script block:
export let db;
export let q;