select and insert and join.cpp only