add useWritePdo for select query
add onWrite method to let Model use write pdo for selecting
add test cases
adjust coding style
add docblock
Merge pull request #6638 from jlyu/select-from-write-pdo

[4.2] Select From Write Pdo