cleaned up sqlite