add generators and set up database