Java implementation (just command line parsing and JDBC).
API version.