added sql to install, added db table define