db writes and latest activity reads almost there