Create Table api method implemented, Refactoring done