JavaDoc for SQL classes
Remove obsolete SQL code; move code to 'test'