converted to postgres and added words import