The sqlighter package provides convenient wrappers that safely open and close the connection to the SQLite database before and after sending queries and receiving results.