Are we talking about two gloves connected to the same Arduino?
What sort of sensors do they have or are they just contacts?
If thy are contacts make one glove have a ground on the contacts and the other glove an input with the internal pull up resistors enabled. Then when you see a LOW signal on the input you know they have touched.
As to the data base, what data base?
Is it running in a computer or in the Arduino? If on a computer then communicate y sending a message on the serial port, but what that message is depends on what database system you have running.