branch database configuration depends on environment