use sqlite db method to generate headers and source files