I don't know if I got your question rigth, but of course you can share the same database for the forum and the shop, I mean it is perfectly right (to my knowledge) have a site that includes a forum and a shop (using a unique database for the site)
You can have two siteaccess if you want it, one for the forum and one for the shop, both siteaccess can share the same database as well