adding generateWordId(), -Removing getConnection from interface and making it static