better generating sqlite