sketch of sqlite usage