brain invoice using mongodb