master: setup database and setup custom command to save sample data to database.