Fix insert query syntax