Helpful wrappers for sqlite