Removed unused code in sql.apl