added mongo stored procedure