Refactored the code;
Moving from PostgreSQL to Cassandra to store links;
Created helper fns for cassandra access;
def is evaluating during the compile time; Hence, changing the cassandra operations to get the connection for each run. Using a global var for db/connection/client should be avoided.
Moved the init method to migrate
Migrated from PostgreSQL to Cassandra; Upgraded to 0.0.2