MySQL and MongoDB repository code