DEVEL - Added database sql generation