Fixed a bug which caused tweets to not be saved into the database.