Fixed counter bug and added words to sql.