Re-written BRWRY (no more mongodb)