Accessing Database from a different site within wix

I’m not sure I understand your problem. Are you trying to use data from wix-site A in wix-site B? If so, have a look at http-functions.