Skip obsolete stores in refresh_stats command

`refresh_stats` command was broken after b47cd81 commit. It failed if there were obsolete stores in DB.
Add doublequoting check

Fix #280