Add agent store.
Add db type check.