My first attempt at building a system in mongodb