completed walking skeleton. Added mongodb logic