Optimize db updating

Now we collect bugs only since
last_update time.
Merge pull request #22 from pkholkin/master

Optimize db updating