working example of sqlite