Update createtables.py

refactoring createtables.py => python program to create a table and some entries on PostgreSQL DB