Fix bug when use_demo_database is empty