move model name functions to Core
added basic join features to pdomysql