replace sqlite statements with wrapped ones for convenience