debug select and sqlite