seperate sql to another file
use event
use event emitter