Added live database insertion

Added the insertion of posts in a mysql database as the document is
being parsed.