Added ability to add to database

This feature doesn't actually work yet as it requires the 'article class
to be updated. This is because the prepared statements for the article
class are not working correctly.