Added src/ and test/ folders

Also written some tests
Added connection to mongodb