Add configuration to database