Based on your post, my best advice would be don't do this, it is fraught with problems !
I would start by reading this -