 (defn select-recent-articles [{db :db recent-articles :recent-articles}]
   (jdbc/query db [(str "SELECT name "
                        "FROM article "
-                       "ORDER BY date "
+                       "ORDER BY date DESC "
                        "LIMIT ?")
                   recent-articles]
               :row-fn (comp helpers/parse-article-code :name)))

(defn select-article-page [{:keys [db articles-per-page]} page-num]
  (jdbc/query db [(str "SELECT name, body "
                       "FROM article "
                       "ORDER BY date "
                       "LIMIT ? "
                       "OFFSET ?")
                  articles-per-page

  (jdbc/query db [(str "SELECT name, body "
                       "FROM article "
                       "WHERE MONTH(date) = ? AND YEAR(date) = ? "
                       "ORDER BY date DESC "
                       "LIMIT ? "
                       "OFFSET ?")
                  month
