Made changes to make it work with the latest emongo and mongosql in my repo