the logic here sounds wrong to me... i think you can achieve the same thing using single database and using its tables.