cleaning up closure in getPublishedArticle()
added foriegn key constraints + WAL journaling mode