bug in createtable.sql fixed