I have the following database structure:
database: => schema1 => users (with userid) => schema2 => photos (with relation to users.id) =>