Take account of user-id when opening tables.
call store.close(). Flake8 fixes