Hello,
It looks like the parent theme was not fully installed and the system can’t create child theme.
Provide us with WP Dashboard access to your site and tell me what demo version would you like to import.
WordPress database error is not related to theme and ask server support to fix that.
Regards