updated sql - ENGINE instead of TYPE