Move database creation to thread instead of async task. SD Write permission must be removed