[CF-165] Implement archiving preferences service

 - Changes to primary key of RESOURCES table in DBTables
  - Added scalatest to the build.gradle
  - Wrote integration tests for DBTables
There is already a c3p0.properties file in src/main/resources. Why do we need this?