Changed order in createtables