polling the db with jQuery