I think we don't want to add all these databases as dependencies.

Does your Input format also run without the dependencies?
So that users that want to use a JDBC driver can add it for their own stratosphere job.