Search this site for this as mny have approached this and there is more than one way to do this....probably not as you initially thought but possible...

Remember that with one DB that the settings/prices are all contained in this single DB and the store files only draw on this info