Fix duplicate import statements

Unsure why setup_dev.sh is highlighted here. Maybe it changed from under me. I think the version in the PR is correct though (?) Worth double checking before merge.
Python import convention is typically:

1. standard library modules
2. 3rd party modules
3. project modules

So, you should remove the first set of duplicates, not this second set. When you do that, make sure you include `get_one_or_else` on the `from db` line here.