Insert and retrieve sqlite database values