fixed database setup in demo script