Polls the middleware and pushes data out to the database. (deprecated)