updated installer
corrected insert query