reduce SQL query
add some trait to stages factory