added frequencies table to db