Generic servlet producing JSON output from JDBC SQL requests