title: How can I connect to a postgreSQL database into Apache Spark using scala?
body: <p>I want to know how can I do following things in scala?</p>
  
  <ol>
  <li>Connect to a postgreSQL database using Spark scala.</li>
  <li>Write SQL queries like SELECT , UPDATE etc. to modify a table in
  that database.</li>
  </ol>
  
  <p>I know to do it using scala but how to import the connector jar of psql scala into sbt while packaging it?</p>