Set writable permission to database file