Added check for files permission in updater

I've added a small sheck for files permission "writable" in updater to check permissions before update the database.