updated to use compose mongo database