breaking out sql to a seperate package.