Fixed db sql to first drop the update homework event before creating