antoniop
committed
on 07 Feb 17
Removed unused sql statements, removed inline sql to rely on xql one, small refactor to better use the api instead of direct sql.