I am running scala version 2.12.1. Using IntelliJ, how can I connect to my local postgresql database using spark and run sql commands to manipulate tables? I am having a lot of issues regarding conflicts of versions, so would it also be possible to include the dependencies?