Add badge in menu
Use a file lock to avoid two processes access db at the same time.