Refactored create_table
Using function json_encode, fixed whitespaces
Fixing merge conflicts