Example of a basic API for a sqllite3 database