implemented sqlite export to cvs