Fixed SQL for updating craft