There's no reason you couldn't use a TCP/IP network plugin to act as a back end on the server. Just send in GET or POST requests to a specific port and let DBP do the work. Unfortunately, DBP isn't geared towards string, array or even database handling, so you'd be fighting a losing battle from the word go.
Secondly... JAVA? *spits*
Try using a language which doesn't have a 6MB footprint per instance. Get something like *drumroll* PHP!
Can I ask you a Question?
What is it?
It's an interrogative form of sentence, used to test knowledge. But that's not important right now.