C4 adding SQL for motherchip project