more structure to separate sql and mongo