Multiple Orchard instalations can share the same database using table prefixes.
The table profix is not part of the connection string. A seperate input box asks you for this information as part of the setup process.
I'm not sure about the directories. I think it should work if they were virtual directories. Give it a go and see if it works.