example: write to sqlite database