added renameTable and createforeignkey functionality