Create missing directory and remove double database init