finished setting up sqlite database + clean up