change sql.java from interface to base class