set up the register
Merge pull request #7 from satrent/bug/fixSql

set up the register