a small wrapper for sqlite