Optimize db updating

Now we collect bugs only since
last_update time.