implement sqlite database creation and insertion