add db query and store.