Correct pathing and sql