working login frequency calculator + persistence layer