So, the bug was down to the way the articles were picked by month from the database. The query in sqlite use the strftime method to get the month whereas postgresql uses the extract method. A quick google on how to check which database adapter was being used revealed a straight forward solution on stack exchange and the issue has now been fixed. Woohoo!