Hook up stores to database