Improve filtering
Moved sync to thread
Vacuum db weekly