Store state service using db