title: Using FluentPostgreSQL in Swift 5.2, POST and GET are working but I have no idea where the data is being stored
body: <p>1) I have the following in Package.swift:</p>
  
  <pre><code>    .package(url: 
  
  "https://github.com/vapor/postgresql.git", from: "1.0.0")
   targets: [
          .target(name: "App", dependencies: ["FluentSQLite", "Vapor", "PostgreSQL"]),
  ... etc.
  </code></pre>
  
  <p>2) And I have PostgreSQL configured in configure.swift:</p>
  
  <pre><code>let postgreSQLConfig = PostgreSQLDatabaseConfig(
    hostname: "localhost",
    port: 5432,
    username: "postgres",
    database: "mydb2",
    password: "bigsecret"
  )
  let psql = PostgreSQLDatabase(config: postgreSQLConfig)
  var databases = DatabasesConfig()
  databases.add(database: psql, as: .psql)
  services.register(databases)
  </code></pre>
  
  <p>3) And I have a table called article in PostgreSQL 11.3.
  4) And I have the following in Article.swift:</p>
  
  <pre><code>    import Foundation
      import FluentPostgreSQL  
      import Vapor
  
      struct Article: PostgreSQLModel {
          var id: Int?
  
          var title: String
          var content: String
          init(id: Int? = nil, title: String, content: String) {
            self.title = title
            self.content = content
          }
  
      }
  
  extension Article: Content {}
  extension Article: Migration {}
  </code></pre>
  
  <p>5) routes.swift looks like:</p>
  
  <pre><code>let articleController = ArticleController()
  router.get("articles", use: articleController.index)
  router.post("articles", use: articleController.create)
  </code></pre>
  
  <p>6) Both the POST and GET are working (i.e. the GET returns everything I've POSTed) ,but I don't see the table in PostgreSQL, so I have no idea where the data is being stored:</p>
  
  <pre><code>import Vapor
  import Foundation
      final class ArticleController {
          func index(_ req: Request) throws -&gt; Future&lt;[Article]&gt; {
              return Article.query(on: req).all()
          }
  
          func create(_ req: Request) throws -&gt; Future&lt;Article&gt; {
              return try req.content.decode(Article.self).flatMap { article in
                      print("10j")
                      return article.save(on: req)
              }
          }
  
  
      }
  </code></pre>
  
  <p>The
  request has Content-Type set to application/json and the request body looks like:</p>
  
  <pre><code>{"id":1,"title":"GGG","content":"HHH"}
  </code></pre>